package com.yangming.springboot.exceptions;

public class AuthException extends RuntimeException {

    private Integer code = 300;
    private String msg = "user auth error";

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public AuthException(){
        super();
    }

    public AuthException(String msg){
        super(msg);
        this.msg = msg;
    }

    public AuthException(Integer code){
        super("user auth error");
        this.code = code;
    }

    public AuthException(String msg, Integer code){
        super(msg);
        this.msg = msg;
        this.code = code;
    }
}
